Class VLANManagerImpl

All Implemented Interfaces:
IPCObject, Process, VLANManager

public class VLANManagerImpl extends ProcessImpl implements VLANManager
Information provided by the PKI file:

    \class VlanManager
    
    \brief VlanManager holds and manipulates VLANs on routers and switches.
    
    \example network().getDevice("Switch0").getProcess("VlanManager")
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getVlan

      public VLAN getVlan(int vlanID)
      Information provided by the PKI file:
      
          \brief Returns the VLAN with the specified VLAN number.
          
          \param vlanID, the number of the VLAN of interest.
          
          \return Vlan, the Vlan object with the specified VLAN number.
          
              
      Specified by:
      getVlan in interface VLANManager
      Parameters:
      vlanID - Takes in a parameter of vlanID
      Returns:
      VLAN Returns a VLAN
    • getVlanAt

      public VLAN getVlanAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the VLAN at the specified index.
          
          \param index, the index of the VLAN of interest.
          
          \return Vlan, the Vlan object at the specified index.
          
              
      Specified by:
      getVlanAt in interface VLANManager
      Parameters:
      index - Takes in a parameter of index
      Returns:
      VLAN Returns a VLAN
    • addVlan

      public boolean addVlan(int vlandID, String vlanName)
      Information provided by the PKI file:
      
          \brief Adds a VLAN.
          
          \param vlandID, the number for the VLAN.
          \param vlanName, the name for the VLAN.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      addVlan in interface VLANManager
      Parameters:
      vlandID - Takes in a parameter of vlandID
      vlanName - Takes in a parameter of vlanName
      Returns:
      boolean Returns a boolean
    • removeVlan

      public boolean removeVlan(int vlandID)
      Information provided by the PKI file:
      
          \brief Removes the VLAN with the specified VLAN number.
          
          \param vlandID, the VLAN number of interest.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      removeVlan in interface VLANManager
      Parameters:
      vlandID - Takes in a parameter of vlandID
      Returns:
      boolean Returns a boolean
    • getVlanCount

      public int getVlanCount()
      Information provided by the PKI file:
      
          \brief Returns the number of VLANs.
          
          \return int, the number of VLANs.
          
              
      Specified by:
      getVlanCount in interface VLANManager
      Returns:
      int Returns a int
    • getMaxVlans

      public int getMaxVlans()
      Information provided by the PKI file:
      
          \brief Returns the maximum number of VLANs.
          
          \return int, the maximum number of VLANs.
          
              
      Specified by:
      getMaxVlans in interface VLANManager
      Returns:
      int Returns a int
    • getVlanByName

      public VLAN getVlanByName(String name)
      Information provided by the PKI file:
      
          \brief Returns the VLAN with the specified VLAN name.
          
          \param name, the name of the VLAN of interest.
          
          \return Vlan, the Vlan object with the specified VLAN name.
          
              
      Specified by:
      getVlanByName in interface VLANManager
      Parameters:
      name - Takes in a parameter of name
      Returns:
      VLAN Returns a VLAN
    • changeVlanName

      public boolean changeVlanName(int vlanID, String name)
      Information provided by the PKI file:
      
          \brief Changes the VLAN name.
          
          \param vlanID, the VLAN number of interest.
          \param name, the name for the VLAN.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      changeVlanName in interface VLANManager
      Parameters:
      vlanID - Takes in a parameter of vlanID
      name - Takes in a parameter of name
      Returns:
      boolean Returns a boolean
    • addVlanInt

      public boolean addVlanInt(int vlanID)
      Information provided by the PKI file:
      
          \brief Adds a VLAN interface with the specified VLAN number.
          
          \param vlanID, the VLAN number for the VLAN interface.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      addVlanInt in interface VLANManager
      Parameters:
      vlanID - Takes in a parameter of vlanID
      Returns:
      boolean Returns a boolean
    • removeVlanInt

      public boolean removeVlanInt(int vlanID)
      Information provided by the PKI file:
      
          \brief Removes the VLAN interface with the specified VLAN number.
          
          \param vlanID, the VLAN number of interest.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      removeVlanInt in interface VLANManager
      Parameters:
      vlanID - Takes in a parameter of vlanID
      Returns:
      boolean Returns a boolean
    • getVlanInt

      public RouterPort getVlanInt(int vlanID)
      Information provided by the PKI file:
      
          \brief Returns the VLAN interface with the specified VLAN number.
          
          \param vlanID, the VLAN number of interest.
          
          \return RouterPort, the RouterPort object of the VLAN interface with the specified VLAN number.
          
              
      Specified by:
      getVlanInt in interface VLANManager
      Parameters:
      vlanID - Takes in a parameter of vlanID
      Returns:
      RouterPort Returns a RouterPort
    • getVlanIntAt

      public RouterPort getVlanIntAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the VLAN interface at the specified index.
          
          \param index, the index of the VLAN interface of interest.
          
          \return RouterPort, the RouterPort object of the VLAN interface at the specified index.
          
              
      Specified by:
      getVlanIntAt in interface VLANManager
      Parameters:
      index - Takes in a parameter of index
      Returns:
      RouterPort Returns a RouterPort
    • getVlanIntCount

      public int getVlanIntCount()
      Information provided by the PKI file:
      
          \brief Returns the number of VLAN interfaces.
          
          \return int, the number of VLAN interfaces.
          
              
      Specified by:
      getVlanIntCount in interface VLANManager
      Returns:
      int Returns a int